<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template/template2.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewFeedbackTitle}"></h:outputText>
        </ui:define>
        <ui:define name="content">
            <div class="panel-wrapper fixed">
                <ul class="breadcrumbs-navigation">
                    <li><h:link outcome="List">Dashboard</h:link></li>
                    <li><h:link outcome="List">Feedback Management</h:link></li>
                </ul>
            </div>

            <div class="panel-wrapper fixed">
                <div class="content spacing">
                    <h:link outcome="Create" class="button-blue"><img alt="" src="#{facesContext.externalContext.request.contextPath}/resources/_layout/images/icons/icon-new.png" /> Add New</h:link>
                </div>
            </div> 
            <div class="panel-wrapper">
                <div class="panel">
                    <div class="title"> 
                        <h4>Table: <strong>Feedback</strong></h4>
                        <div class="collapse"></div>
                    </div>
                    <div class="content">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewFeedbackLabel_feedbackId}"/>
                    <h:outputText value="#{feedbackController.selected.feedbackId}" title="#{bundle.ViewFeedbackTitle_feedbackId}"/>
                    <h:outputText value="#{bundle.ViewFeedbackLabel_contents}"/>
                    <h:outputText value="#{feedbackController.selected.contents}" title="#{bundle.ViewFeedbackTitle_contents}"/>
                    <h:outputText value="#{bundle.ViewFeedbackLabel_status}"/>
                    <h:outputText value="#{feedbackController.selected.status}" title="#{bundle.ViewFeedbackTitle_status}"/>
                    <h:outputText value="#{bundle.ViewFeedbackLabel_answer}"/>
                    <h:outputText value="#{feedbackController.selected.answer}" title="#{bundle.ViewFeedbackTitle_answer}"/>
                    <h:outputText value="#{bundle.ViewFeedbackLabel_username}"/>
                    <h:outputText value="#{feedbackController.selected.username}" title="#{bundle.ViewFeedbackTitle_username}"/>
                </h:panelGrid>
                <br />
                <div class="content spacing" style="margin-left: 200px;">

                 <h:link outcome="Edit" class="button-blue"><img alt="" src="#{facesContext.externalContext.request.contextPath}/resources/_layout/images/icons/icon-new.png" /> Edit</h:link>
                  <h:commandButton action="#{feedbackController.prepareList()}" value="Cancel" styleClass="button-white"/>
                            </div>

            </h:form>
                    </div>
                </div>
            </div>
        </ui:define>
    </ui:composition>

</html>
